package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_lead table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_lead"
 */

public abstract class BaseTJesLead  implements Serializable {

	public static String REF = "TJesLead";
	public static String PROP_STATUS = "Status";
	public static String PROP_RESUME = "Resume";
	public static String PROP_EMAIL = "Email";
	public static String PROP_FMENUID = "Fmenuid";
	public static String PROP_DUTY = "Duty";
	public static String PROP_MANA = "Mana";
	public static String PROP_TEL = "Tel";
	public static String PROP_IMG = "Img";
	public static String PROP_NAME = "Name";
	public static String PROP_ID = "Id";
	public static String PROP_IDX = "Idx";
	public static String PROP_POSTTIME = "Posttime";


	// constructors
	public BaseTJesLead () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesLead (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String fmenuid;
	private java.lang.String name;
	private java.lang.String duty;
	private java.lang.String tel;
	private java.lang.String email;
	private java.lang.String mana;
	private java.lang.String resume;
	private java.lang.String img;
	private java.lang.String status;
	private java.util.Date posttime;
	private java.lang.Integer idx;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: FMENUID
	 */
	public java.lang.String getFmenuid () {
		return fmenuid;
	}

	/**
	 * Set the value related to the column: FMENUID
	 * @param fmenuid the FMENUID value
	 */
	public void setFmenuid (java.lang.String fmenuid) {
		this.fmenuid = fmenuid;
	}



	/**
	 * Return the value associated with the column: NAME
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: NAME
	 * @param name the NAME value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: DUTY
	 */
	public java.lang.String getDuty () {
		return duty;
	}

	/**
	 * Set the value related to the column: DUTY
	 * @param duty the DUTY value
	 */
	public void setDuty (java.lang.String duty) {
		this.duty = duty;
	}



	/**
	 * Return the value associated with the column: TEL
	 */
	public java.lang.String getTel () {
		return tel;
	}

	/**
	 * Set the value related to the column: TEL
	 * @param tel the TEL value
	 */
	public void setTel (java.lang.String tel) {
		this.tel = tel;
	}



	/**
	 * Return the value associated with the column: EMAIL
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: EMAIL
	 * @param email the EMAIL value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: MANA
	 */
	public java.lang.String getMana () {
		return mana;
	}

	/**
	 * Set the value related to the column: MANA
	 * @param mana the MANA value
	 */
	public void setMana (java.lang.String mana) {
		this.mana = mana;
	}



	/**
	 * Return the value associated with the column: RESUME
	 */
	public java.lang.String getResume () {
		return resume;
	}

	/**
	 * Set the value related to the column: RESUME
	 * @param resume the RESUME value
	 */
	public void setResume (java.lang.String resume) {
		this.resume = resume;
	}



	/**
	 * Return the value associated with the column: IMG
	 */
	public java.lang.String getImg () {
		return img;
	}

	/**
	 * Set the value related to the column: IMG
	 * @param img the IMG value
	 */
	public void setImg (java.lang.String img) {
		this.img = img;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: POSTTIME
	 */
	public java.util.Date getPosttime () {
		return posttime;
	}

	/**
	 * Set the value related to the column: POSTTIME
	 * @param posttime the POSTTIME value
	 */
	public void setPosttime (java.util.Date posttime) {
		this.posttime = posttime;
	}



	/**
	 * Return the value associated with the column: IDX
	 */
	public java.lang.Integer getIdx () {
		return idx;
	}

	/**
	 * Set the value related to the column: IDX
	 * @param idx the IDX value
	 */
	public void setIdx (java.lang.Integer idx) {
		this.idx = idx;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesLead)) return false;
		else {
			com.lovejes.app.domain.TJesLead tJesLead = (com.lovejes.app.domain.TJesLead) obj;
			if (null == this.getId() || null == tJesLead.getId()) return false;
			else return (this.getId().equals(tJesLead.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}